package com.server.commons.minio;

import com.server.model.all.enums.BucketNameEnum;
import com.server.commons.minio.base.BaseMinioFile;
import com.server.commons.minio.constant.MinioPolicyConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 主图
 * @author LXC
 * @date 2022/5/7 19:12
 */
@Component
@Slf4j
public class MainMinioFile extends BaseMinioFile {

    //设置桶
    @Override
    public BucketNameEnum getBucketNameEnum() {
        return BucketNameEnum.MAIN_IMAGE;
    }

    @Override
    public String getPolicy() {
        return MinioPolicyConstant.PRIVATE;
    }

}
